import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import get from '@dfeidao/atom-web/local/get';
import fire from '@dfeidao/atom-web/msg/fire';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
export default async function a003(fd: IFeidaoAiBrowserComponent, e: Event) {
	// todo选定
	const d = fd.data.node.querySelectorAll<HTMLDivElement>('[class="tableRow"]');
	for (let i = 0; i < d.length; i++) {
		set_node_cls(d[i], 'bg - c', false);
	}
	const c = e.currentTarget as HTMLDivElement;
	set_node_cls(c, 'bg - c', true);

	const attr_no = get(fd, 'a') as string;
	const attr_name = c.getAttribute("data-zzs");
	alert(attr_no);
	alert(attr_name);

	fire('zj-000001', 'a015', attr_no, attr_name);
	fire('zj-000004', 'a002');
}
